const tokenKey = 'token'
const storage = {
    getToken() {
        return JSON.parse(localStorage.getItem(tokenKey))
    },
    setToken(value = {}) {
        localStorage.setItem(tokenKey, JSON.stringify(value))
    },
    removeToken() {
        localStorage.removeItem(tokenKey)
    }
}
export default storage
